<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    'index' => 'home/index/index',
    'login' => 'home/login/douserLogin',
    'register' => 'home/login/register',
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    '[project]'     => [
        'add'   => ['home/project/add'],
        'del/:ids'   => ['home/project/del', [], ['ids' => '\d+']],
        'edit/:ids' => ['home/project/edit', [], ['ids' => '\d+']],
        'getProject' => ['home/project/getProject'],
        'projectCenter/:status' => ['home/project/projectCenter', [], ['status' => '\d+']],
        'getContent/:action' => ['home/project/getContent', [], ['action' => '\w+']],
        'productInfo' => ['home/project/productInfo'],
        'getAddInfo/:action' => ['home/project/getAddInfo',[],['action' => '\w+']],
    ],
    '[projectNeed]'     => [
        'add'   => ['home/projectNeed/add'],
        'del/:ids'   => ['home/projectNeed/del', [], ['ids' => '\d+']],
        'edit/:ids' => ['home/projectNeed/edit', [], ['ids' => '\d+']],
        'query/:id' => ['home/projectNeed/query', [], ['id' => '\d+']],
        'getIndexNeed' => ['home/projectNeed/getIndexNeed'],
        'editTime/:id' => ['home/projectNeed/editTime', [], ['id' => '\d+']],
        'editPlan' => ['home/projectNeed/editPlan'],
        'getPlan' => ['home/projectNeed/getPlan'],
        'delImg' => ['home/projectNeed/delImg'],
        'needPond' => ['home/projectNeed/needPond'],
        'getTask' => ['home/projectNeed/getTask'],
    ],
    '[projectBug]'     => [
        'add'   => ['home/projectBug/add'],
        'del/:ids'   => ['home/projectBug/del', [], ['ids' => '\d+']],
        'edit/:ids' => ['home/projectBug/edit', [], ['ids' => '\d+']],
        'query/:id' => ['home/projectBug/query', [], ['id' => '\d+']],
        'getIndexBug' => ['home/projectBug/getIndexBug'],
    ],
    '[versions]'     => [
        'addProduct'   => ['home/versions/addProduct',[]],
        'del/:ids'   => ['home/versions/del', [], ['ids' => '\d+']],
        'delBlock/:ids'   => ['home/versions/delBlock', [], ['ids' => '\d+']],
        'edit/:ids' => ['home/versions/edit', [], ['ids' => '\d+']],
        'query/:id' => ['home/versions/query', [], ['id' => '\d+']],
        'getBlock/:id' => ['home/versions/getBlock', [], ['id' => '\d+']],
        'getContent/:action' => ['home/versions/getContent', [], ['action' => '\w+']],
        'enable' => ['home/versions/enable'],
    ],
    '[log]'     => [
        'getLog/:id'   => ['home/log/getLog', [], ['id' => '\d+']],
    ],
    '[issueVersions]'     => [
        'getLst'   => ['home/issueVersions/getLst', []],
        'getProjectLst'   => ['home/issueVersions/getLst', []],
        'add'   => ['home/issueVersions/add', []],
        'del/:ids'   => ['home/issueVersions/del', [], ['ids' => '\d+']]
    ],
    '[deploy]'     => [
        'getDeploy'   => ['home/deploy/getDeploy'],
        'add'   => ['home/deploy/add'],
        'del/:ids'   => ['home/deploy/del', [], ['ids' => '\d+']],
        'edit/:ids' => ['home/deploy/edit', [], ['ids' => '\d+']],
        'screening' => ['home/deploy/screening', [], ['ids' => '\d+']],
    ]
];
